package chapter04;

import java.util.Scanner;

public class Day11 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入语文成绩：");
        double num1 = input.nextDouble();
        System.out.println("请输入数学成绩：");
        double num2 = input.nextDouble();
        System.out.println("请输入英语成绩：");
        double num3 = input.nextDouble();
        double sum = num1+num2+num3;
        double age = sum/3;
        System.out.println("王菲的总分是："+sum+",平均分是："+age);
    }
}
